using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GameManage : MonoBehaviour
{
    public static GameManage instance;

    private Bird[] birdList;
    private int index = -1;
    private void Awake()
    {
        instance = this;
    }
    // Start is called before the first frame update
    void Start()
    {
       birdList = FindObjectsByType<Bird>(FindObjectsSortMode.None);
        LoadNextBird();
    }

    // Update is called once per frame
    void Update()
    {
        
    }
    public void LoadNextBird()
    {
        index++;
        birdList[index].GoStage(Slingshot.instance.getCenterPositon());
    }
}
